/*
 * 文件名: Company.java
 * 包路径: com.thx.addressList.model
 * 创建描述
 *        创建人：张衡
 *        创建日期：2014年4月22日 下午3:04:54
 *        内容描述：
 * 修改描述
 *        修改人：张衡
 *        修改日期：2014年4月22日 下午3:04:54
 *        修改内容:
 * 版本: V1.0
 */
/*
 * 文件名: Company.java
 * 包路径: com.thx.addressList.model
 * 创建描述
 *        创建人：张衡
 *        创建日期：2014年4月22日 下午3:04:54
 *        内容描述：
 * 修改描述
 *        修改人：张衡
 *        修改日期：2014年4月22日 下午3:04:54
 *        修改内容:
 * 版本: V1.0
 */
package com.thx.org.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.thx.org.Org;

/**
 *
 * 类: <code> Company </code><br/>
 * 功能描述: 企业的实体类<br/>
 * 创建人: 张衡 <br/>
 * 创建日期: 2014年4月22日 下午3:18:56 <br/>
 */
@Entity
@Table(name = "org_company")
public class Company implements Org {

	private static final long serialVersionUID = 6168369410738395290L;
	
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "uuid")
	private String comId;
	private String comName;//企业名称
	private String comShortName;// 企业简称
	private String comAddress;//地址
	private String comNumber;// 企业编号
	private String comLinkMan;// 企业联系人
	private String comTel;// 企业电话
	private String comMobilePhone;// 移动电话
	private String comEmail;// 电子邮件
	private String comFax;// 传真
	private String comType;// 企业类型
	private Date comBirthday;// 企业成立时间
	private String comPostCode;// 邮政编码
	private String comUrl;// 网址
	private String logoPath;//logo路径
	private Date creatTime;//创建日期
	private String creatUser;//创建人
	private Date modifyDate;//修改日期

	@Column(name = "modifier_")
	private Long modifier;//修改人

	@Transient
	private List<Department> children = new ArrayList<Department>();

	@Column(name = "reserve_1")
	private String reserve1;

	@Column(name = "reserve_2")
	private String reserve2;

	@Column(name = "reserve_3")
	private String reserve3;

	@Column(name = "reserve_4")
	private String reserve4;

	@Column(name = "reserve_5")
	private String reserve5;

	@Column(name = "reserve_6")
	private String reserve6;

	@Column(name = "reserve_7")
	private String reserve7;

	@Column(name = "reserve_8")
	private String reserve8;

	@Column(name = "reserve_9")
	private String reserve9;

	@Column(name = "reserve_10")
	private String reserve10;

	@Column(name = "reserve_11")
	private String reserve11;

	@Column(name = "reserve_12")
	private String reserve12;

	@Column(name = "reserve_13")
	private String reserve13;

	@Column(name = "reserve_14")
	private String reserve14;

	@Column(name = "reserve_15")
	private String reserve15;
	
	@Column(name = "reserve_16")
	private String reserve16;
	
	@Column(name = "reserve_17")
	private String reserve17;
	
	@Column(name = "reserve_18")
	private String reserve18;
	
	@Column(name = "reserve_19")
	private String reserve19;
	
	@Column(name = "reserve_20")
	private String reserve20;

	@Override
	public String getOrgId() {
		return this.comId;
	}

	@Override
	public String getOrgName() {
		return this.comName;
	}

	/*set get method*/

	public String getComId() {
		return comId;
	}

	public void setComId(String comId) {
		this.comId = comId;
	}

	public String getComName() {
		return comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	public String getComShortName() {
		return comShortName;
	}

	public void setComShortName(String comShortName) {
		this.comShortName = comShortName;
	}

	public String getComAddress() {
		return comAddress;
	}

	public void setComAddress(String comAddress) {
		this.comAddress = comAddress;
	}

	public String getComNumber() {
		return comNumber;
	}

	public void setComNumber(String comNumber) {
		this.comNumber = comNumber;
	}

	public String getComLinkMan() {
		return comLinkMan;
	}

	public void setComLinkMan(String comLinkMan) {
		this.comLinkMan = comLinkMan;
	}

	public String getComTel() {
		return comTel;
	}

	public void setComTel(String comTel) {
		this.comTel = comTel;
	}

	public String getComMobilePhone() {
		return comMobilePhone;
	}

	public void setComMobilePhone(String comMobilePhone) {
		this.comMobilePhone = comMobilePhone;
	}

	public String getComEmail() {
		return comEmail;
	}

	public void setComEmail(String comEmail) {
		this.comEmail = comEmail;
	}

	public String getComFax() {
		return comFax;
	}

	public void setComFax(String comFax) {
		this.comFax = comFax;
	}

	public String getComType() {
		return comType;
	}

	public void setComType(String comType) {
		this.comType = comType;
	}

	public Date getComBirthday() {
		return comBirthday;
	}

	public void setComBirthday(Date comBirthday) {
		this.comBirthday = comBirthday;
	}

	public String getComPostCode() {
		return comPostCode;
	}

	public void setComPostCode(String comPostCode) {
		this.comPostCode = comPostCode;
	}

	public String getComUrl() {
		return comUrl;
	}

	public void setComUrl(String comUrl) {
		this.comUrl = comUrl;
	}

	public String getLogoPath() {
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	public Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	public String getCreatUser() {
		return creatUser;
	}

	public void setCreatUser(String creatUser) {
		this.creatUser = creatUser;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public List<Department> getChildren() {
		return children;
	}

	public void setChildren(List<Department> children) {
		this.children = children;
	}

	public String getReserve1() {
		return reserve1;
	}

	public void setReserve1(String reserve1) {
		this.reserve1 = reserve1;
	}

	public String getReserve2() {
		return reserve2;
	}

	public void setReserve2(String reserve2) {
		this.reserve2 = reserve2;
	}

	public String getReserve3() {
		return reserve3;
	}

	public void setReserve3(String reserve3) {
		this.reserve3 = reserve3;
	}

	public String getReserve4() {
		return reserve4;
	}

	public void setReserve4(String reserve4) {
		this.reserve4 = reserve4;
	}

	public String getReserve5() {
		return reserve5;
	}

	public void setReserve5(String reserve5) {
		this.reserve5 = reserve5;
	}

	public String getReserve6() {
		return reserve6;
	}

	public void setReserve6(String reserve6) {
		this.reserve6 = reserve6;
	}

	public String getReserve7() {
		return reserve7;
	}

	public void setReserve7(String reserve7) {
		this.reserve7 = reserve7;
	}

	public String getReserve8() {
		return reserve8;
	}

	public void setReserve8(String reserve8) {
		this.reserve8 = reserve8;
	}

	public String getReserve9() {
		return reserve9;
	}

	public void setReserve9(String reserve9) {
		this.reserve9 = reserve9;
	}

	public String getReserve10() {
		return reserve10;
	}

	public void setReserve10(String reserve10) {
		this.reserve10 = reserve10;
	}

	public String getReserve11() {
		return reserve11;
	}

	public void setReserve11(String reserve11) {
		this.reserve11 = reserve11;
	}

	public String getReserve12() {
		return reserve12;
	}

	public void setReserve12(String reserve12) {
		this.reserve12 = reserve12;
	}

	public String getReserve13() {
		return reserve13;
	}

	public void setReserve13(String reserve13) {
		this.reserve13 = reserve13;
	}

	public String getReserve14() {
		return reserve14;
	}

	public void setReserve14(String reserve14) {
		this.reserve14 = reserve14;
	}

	public String getReserve15() {
		return reserve15;
	}

	public void setReserve15(String reserve15) {
		this.reserve15 = reserve15;
	}

	public String getReserve16() {
		return reserve16;
	}

	public void setReserve16(String reserve16) {
		this.reserve16 = reserve16;
	}

	public String getReserve17() {
		return reserve17;
	}

	public void setReserve17(String reserve17) {
		this.reserve17 = reserve17;
	}

	public String getReserve18() {
		return reserve18;
	}

	public void setReserve18(String reserve18) {
		this.reserve18 = reserve18;
	}

	public String getReserve19() {
		return reserve19;
	}

	public void setReserve19(String reserve19) {
		this.reserve19 = reserve19;
	}

	public String getReserve20() {
		return reserve20;
	}

	public void setReserve20(String reserve20) {
		this.reserve20 = reserve20;
	}

}
